package com.ipartek.formacion.gestformwww.modelo.beans;

import com.ipartek.formacion.gestformwww.controlador.Verificador;
import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Curso
 */
public class Empresa {

    private Integer empId;// int 18
    private String empCIF;// varchar 50
    private String empDir;// varchar 50
    private String empTlf1;// varchar 50
    private String empTlf2;// varchar 9
    private String empMail;// varchar 50
    private String empWeb;// varchar 50
    private String empNom;// varchar 50
    private String empObserv;// varchar 500

    public Empresa(Integer empId, String empCIF, String empDir, String empTlf1, String empTlf2, String empMail, String empWeb, String empNom, String empObs) {
        this.empId = empId;
        this.empCIF = empCIF;
        this.empDir = empDir;
        this.empTlf1 = empTlf1;
        this.empTlf2 = empTlf2;
        this.empMail = empMail;
        this.empWeb = empWeb;
        this.empNom = empNom;
        this.empObserv = empObs;
    }

    public Empresa(){
        
    }

    public String getEmpCIF() {
        return empCIF;
    }

    public void setEmpCIF(String empCIF) {
        this.empCIF = empCIF;
    }

    public String getEmpDir() {
        return empDir;
    }

    public void setEmpDir(String empDir) {
        this.empDir = empDir;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpMail() {
        return empMail;
    }

    public void setEmpMail(String empMail) {
        this.empMail = empMail;
    }

    public String getEmpNom() {
        return empNom;
    }

    public void setEmpNom(String empNom) {
        this.empNom = empNom;
    }

    public String getEmpObserv() {
        return empObserv;
    }

    public void setEmpObserv(String empObs) {
        this.empObserv = empObs;
    }

    public String getEmpTlf1() {
        return empTlf1;
    }

    public void setEmpTlf1(String empTlf1) {
        this.empTlf1 = empTlf1;
    }

    public String getEmpTlf2() {
        return empTlf2;
    }

    public void setEmpTlf2(String empTlf2) {
        this.empTlf2 = empTlf2;
    }

    public String getEmpWeb() {
        return empWeb;
    }

    public void setEmpWeb(String empWeb) {
        this.empWeb = empWeb;
    }


    public void nuevaEmpresa()
    {

    }

    public void borrarEmpresa()
    {

    }

    public void modificarEmpresa()
    {

    }

    public void visualizarEmpresa()
    {


    }
/**
 * Valida que los datos de la empresa son correctos
 * @return
 */
   public ArrayList<String> validar(){
        ArrayList<String>  errores= new ArrayList<String>();
         if(!Verificador.caracteresCorrectos(empNom)){
            errores.add("error-nombre-empresa-incorrecto");
        }
        return errores;
    }

}
